<!doctype html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>ENC进销存管理系统</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" href="/static/image/slogan.png" type="image/x-icon">
    <link rel="stylesheet" href="/static/admin/css/font.css">
    <link rel="stylesheet" href="/static/admin/css/xadmin.css">
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        var is_remember = true;
    </script>
    <style type="text/css">
        .container {
            height: 50px;
            background-color: #424656;
        }

        .container .layui-nav-item {
            line-height: 50px;
        }

        .container .logo a {
            color: #ffffffcc;
            font-size: 18px;
            letter-spacing: 1px;
            line-height: 50px;
            background-color: #424656;
        }

        .container .left_open a:hover {
            color: #ffffffcc;
            border-radius: 3px;
            background-color: #424656;
        }

        .container .left_open i {
            width: 35px;
            height: 35px;
            line-height: 37px;
            margin-top: 8px;
        }

        .container a, .layui-nav .layui-nav-item a {
            font-size: 14px;
            color: #ffffffcc;
        }

        .left-nav {
            top: 50px;
            padding-top: 0;
            border-radius: 0;
            background-color: #424656;
        }

        .left-nav a:hover {
            color: #ffffffcc;
            border-color: #009688 !important;
            background-color: #009688 !important;
        }

        .left-nav a.active {
            color: #ffffffcc;
            border-color: #009688 !important;
            background-color: #009688 !important;
        }

        .left-nav #nav li a {
            color: #ffffffcc;
        }

        .page-content {
            top: 50px;
        }

        .x-admin-sm .left-nav #nav li a cite {
            font-size: 14px;
            letter-spacing: 0.5px;
        }

        .layui-nav .layui-nav-more {
            content: '';
            width: 0;
            height: 0;
            border-style: solid dashed dashed;
            border-color: #fff transparent transparent;
            overflow: hidden;
            cursor: pointer;
            transition: all .2s;
            -webkit-transition: all .2s;
            position: absolute;
            top: 50%;
            right: 3px;
            margin-top: -3px;
            border-width: 6px;
            border-top-color: rgba(255, 255, 255, .7);
        }

        .container .layui-nav-child {
            top: 52px;
        }
    </style>
</head>
<body class="index">
<!-- 顶部开始 -->
<div class="container">
    <div class="logo">
        <a href="/admin">ENC进销存管理系统</a>
    </div>
    <div class="left_open">
        <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
    </div>
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="">
                <img src="/static/image/message.png" alt="" style="width: 20px;height: 20px">
                <span class="layui-badge"
                      style="margin-top: -18px;margin-left: 2px;width: 16px;height: 16px;border-radius: 50%;padding: 0;font-size: 14px;line-height: 16px">{{$total}}</span>
                <dl class="layui-nav-child">
                    <dd><a onclick="xadmin.add_tab('代理商申请','/admin/store/storeApply', true)" style="color: #000000">代理商申请待审核：<span
                                style="color: red">{{$toAuditStore}}</span> 条</a></dd>
                    <dd><a onclick="xadmin.add_tab('补货订单','/admin/order/orderList', true)" style="color: #000000">补货订单待审核：<span
                                style="color: red">{{$toAuditOrder}}</span> 条</a></dd>
                </dl>
            </a>
        </li>
        <li class="layui-nav-item">
            <a href="javascript:;">{{ $user_name }}</a>
            <span class="layui-nav-more"></span>
            <dl class="layui-nav-child">
                <!-- 二级菜单 -->
                {{--<dd><a onclick="xadmin.open('个人信息', 'http://www.baidu.com')">个人信息</a></dd>--}}
                <dd><a href="/admin/loginout" style="color: #000000">切换帐号</a></dd>
                <dd><a onclick="xadmin.add_tab('代理商申请','/admin/system/userPassword?id={{$user_id}}', true)"
                       style="color: #000000">修改密码</a></dd>
                <dd><a href="/admin/loginout" style="color: #000000">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item to-index">
            <a href="/admin">返回首页</a>
        </li>
    </ul>
</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav" style="max-height:calc(100vh - 60px);overflow-x:hidden;">
            @foreach ($menus as $menu)
                <li>
                    <a href="javascript:;">
                        <i class="iconfont left-nav-li" lay-tips="{{$menu['name']}}">
                            @if(!empty($menu['icon_font']))
                                {!! $menu['icon_font'] !!}
                            @else
                                &#xe6b8;
                            @endif
                        </i>
                        <cite>{{$menu['name']}}</cite>
                        <i class="iconfont nav_right">&#xe697;</i>
                    </a>
                    <ul class="sub-menu">
                        @foreach ($menu['son'] as $menuson)
                            <li>
                                <a onclick="xadmin.add_tab('{{$menuson['name']}}','{{$menuson['url']}}', true)">
                                    <i class="iconfont">&#xe6a7;</i>
                                    <cite>{{$menuson['name']}}</cite>
                                </a>
                            </li>
                        @endforeach
                    </ul>
                </li>
            @endforeach
        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home">
                <i class="layui-icon">&#xe68e;</i>我的桌面
            </li>
        </ul>
        <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
            <dl>
                <dd data-type="this">关闭当前</dd>
                <dd data-type="other">关闭其它</dd>
                <dd data-type="all">关闭全部</dd>
            </dl>
        </div>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='/admin/index/welcome' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
        <div id="tab_show"></div>
    </div>
</div>
<div class="page-content-bg"></div>
<style id="theme_style"></style>
<!-- 右侧主体结束 -->
</body>

</html>
